package model;

import java.sql.Timestamp;

public class Post {
	private int postId;
	private Timestamp postTime;
	private String title;
	private char enableComment;
	private String content;
	private int type;
	private int readPermission;
	private int userId;
	private int readCount;
	private String userName;
	
	public Post() {}
	public Post(int postId, Timestamp postTime, String title, char enableComment,
			String content, int type, int readPermission, int userId, int readCount, 
			String userName) {
		super();
		this.postId = postId;
		this.postTime = postTime;
		this.title = title;
		this.enableComment = enableComment;
		this.content = content;
		this.type = type;
		this.readPermission = readPermission;
		this.userId = userId;
		this.readCount = readCount;
		this.userName = userName;
	}
	
	public int getPostId() {
		return postId;
	}
	public void setPostId(int postId) {
		this.postId = postId;
	}
	public Timestamp getPostTime() {
		return postTime;
	}
	public void setPostTime(Timestamp postTime) {
		this.postTime = postTime;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public char getEnableComment() {
		return enableComment;
	}
	public void setEnableComment(char enableComment) {
		this.enableComment = enableComment;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getReadPermission() {
		return readPermission;
	}
	public void setReadPermission(int readPermission) {
		this.readPermission = readPermission;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getReadCount() {
		return readCount;
	}
	public void setReadCount(int readCount) {
		this.readCount = readCount;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	@Override
	public String toString() {
		return "Post [content=" + content + ", enableComment=" + enableComment
				+ ", postId=" + postId + ", postTime=" + postTime
				+ ", readCount=" + readCount + ", readPermission="
				+ readPermission + ", title=" + title + ", type=" + type
				+ ", userId=" + userId + ", userName=" + userName + "]";
	}
}
